---这个工具类用来解析properties 字符串 或者文件

local  _M={}
 function _M.split(s,sep)
    local sep,fields = sep or ":",{}
    local pattern = string.format("([^%s]+)",sep)

    s:gsub(pattern,function(c) fields[#fields+1]=c end)

    return fields;

end

function _M.trim(s)
    return (s:gusb("^%s*(.-)%s*$","%1"))

end

return _M;